import axios from '@/libs/request/axios'
export const getGroupInfo = (params) => {
    return axios.request({
        url: '/case/group/getGroupInfo',
        params:params,
        method: 'get'
    })
}

//查询成员信息
export const queryMemberList = (params) => {
    return axios.request({
        url: '/case/group/queryMemberList',
        params:params,
        method: 'get'
    })
}

//编辑成员信息
export const updateMember = (params) => {
    return axios.request({
        url: '/case/group/updateMember',
        data:params,
        method: 'post'
    })
}

//批量编辑成员信息
export const batchUpdateMember = (ids, params) => {
    return axios.request({
        url: `/case/group/batchUpdateMember/${ids}`,
        data: params,
        method: 'post'
    })
}

//代办任务释放
export const agencyTask = (params) => {
    return axios.request({
        url: `/case/group/agencyTask`,
        data: params,
        method: 'post'
    })
}

//编辑上岗/下岗状态
export const updatePost = (params) => {
    return axios.request({
        url: `/case/group/updatePost`,
        data: params,
        method: 'post'
    })
}

//删除审批组成员
export const deleteMember = (params) => {
    return axios.request({
        url:`/case/group/deleteMember`,
        data:params,
        method: 'post'
    })
}

//权限调整
export const powerUpdate = (params) => {
    return axios.request({
        url: `/case/group/powerUpdate`,
        data: params,
        method: 'post'
    })
}

//查询成员权限
export const queryPower = (params) => {
    return axios.request({
        url: '/case/group/queryPower',
        params:params,
        method: 'get'
    })
}

//新增成员
export const addMember = (params) => {
    return axios.request({
        url: `/case/group/addMember`,
        data: params,
        method: 'post'
    })
}

//汇总操作组名称
export const queryGroupName = (params) => {
    return axios.request({
        url: '/case/group/queryGroupName',
        params:params,
        method: 'get'
    })
}

//转组
export const groupTransfer = (params) => {
    return axios.request({
        url: `/case/group/groupTransfer`,
        data: params,
        method: 'post'
    })
}

//查询日程信息
export const getScheduleInfo = (params) => {
    return axios.request({
        url: '/case/group/getScheduleInfo',
        params:params,
        method: 'get'
    })
}

//批量设定日历
export const personalCalendarUpdate = (params) => {
    return axios.request({
        url: `/case/group/personalCalendarUpdate`,
        data: params,
        method: 'post'
    })
}

//个人日历设定
export const batchUpdateCalendar = (params) => {
    return axios.request({
        url: `/case/group/batchUpdateCalendar`,
        data: params,
        method: 'post'
    })
}

//更新当天日程
export const updateDay = (params) => {
    return axios.request({
        url: `/case/group/updateDay`,
        data: params,
        method: 'post'
    })
}

//设置用户配置
export const setUserCollocation = (params) => {
    return axios.request({
        url: `/case/group/setUserCollocation`,
        data: params,
        method: 'post'
    })
}

//查询用户配置
export const queryUserCollocation = (params) => {
    return axios.request({
        url: '/case/group/queryUserCollocation',
        params:params,
        method: 'get'
    })
}

//查询用户详情信息
export const getUserDetailsInfo = (params) => {
    return axios.request({
        url: '/case/group/getUserDetailsInfo',
        params:params,
        method: 'get'
    })
}

//岗位异动日志保存
export const savePostChangeLog = (params) => {
    return axios.request({
        url: '/case/group/savePostChangeLog',
        data:params,
        method: 'post'
    })
}

//岗位异动日志查询
export const queryPostChangeLog = (params) => {
    return axios.request({
        url: '/case/group/queryPostChangeLog',
        params:params,
        method: 'get'
    })
}

//获取个人日程信息
export const queryOpraHolidayInfo = (params) => {
    return axios.request({
        url: '/case/group/queryOpraHolidayInfo',
        data:params,
        method: 'post'
    })
}

//坐席获取日程信息
export const queryCalenderRecord = (params) => {
    return axios.request({
        url: '/case/group/queryCalenderRecord',
        params:params,
        method: 'get'
    })
}

//更新坐席当天日程
export const updateSeatsDay = (params) => {
    return axios.request({
        url: `/case/group/updateSeatsDay`,
        data: params,
        method: 'post'
    })
}

//获取上离岗按钮
export const getUserJobButton = (params) => {
    return axios.request({
        url: '/case/group/getUserJobButton',
        params:params,
        method: 'get'
    })
}

//更新用户配置
export const updateUserCollocation = (params) => {
    return axios.request({
        url: `/case/group/updateUserCollocation`,
        data: params,
        method: 'post'
    })
}
